package alf.mapping.view;

import android.app.Activity;
import android.widget.TextView;
import android.widget.CheckBox;

public class Util {

	public static void setText(Activity a, int id, String text) {
		TextView t = (TextView) a.findViewById(id);
		t.setText(text);
	}
	public static String getText(Activity a, int id) {
		TextView t = (TextView) a.findViewById(id);
		return t.getText().toString();
	}
	public static void setCheck(Activity a, int id, boolean b) {
		CheckBox c = (CheckBox) a.findViewById(id);
		c.setChecked(b);
	}
	public static boolean isChecked(Activity a,int id) {
		CheckBox c = (CheckBox) a.findViewById(id);
		return c.isChecked();
	}
}
